<template>
  <h1>我是子组件1</h1>
</template>
<script setup>
import {ref} from 'vue'
const count = ref(1)
const age = ref(18)

// 显示暴露  宏命令
defineExpose({
  count,
  age
})
</script>

